﻿@{
    ViewBag.Title = "ModifyEmployee";
    Layout = "~/Views/Shared/_LayoutDataContentTotalQuery.cshtml";
}

@section SectionCondition{
    <script type="text/javascript">
        function handleInit() {
            departmentModify();
            initDelDepartmentDialogConfirm();
            initDialogModifyDepartment();
        }

        function handleQueryButtonClick(ui) {
            departmentModifyButtonClk(ui);
        }

        function centerResize() {
            $('#departmentsGrid').jqxGrid('refresh');
            $('#departmentsGrid').jqxGrid('refreshdata');
        }
    </script>
    
    <div id="dialog-confirm" title="提示框">
        <p>
            <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 10px 0;"></span>
            确定要删除么?</p>
    </div>
   
    <div id="dialog-modifyDepartment" title="创建新部门">
        <form>
        <fieldset>
           <label for="departmentName">
                部门名 : </label>
            <input type="text" name="departmentName" id="input_departmentName" class="text ui-widget-content ui-corner-all" />

            <label for="departmentTotal" >
                部门总数 : </label>
            <input  type="text" name="departmentTotal" id="input_departmentTotal" class="text ui-widget-content ui-corner-all" />

            <label for="departmentIntroduction">
                介绍 : </label>
            <input type="text" name="departmentIntroduction" id="input_departmentIntroduction" value="" class="text ui-widget-content ui-corner-all" />

            <label for="parentDepartment">
                父部门 : </label>
            <input type="text" name="parentDepartment" id="input_parentDepartment" value="" class="text ui-widget-content ui-corner-all" />
         </fieldset>
        </form>

        <p class="validateTips">验证消息 here！</p>
    </div>
   
    <div>
        操作面板
        <br>
        <br>
        <br>
        <button name="departmentAdd">
            添加</button>
        <br>
        <br>
        <button name="departmentDel">
            删除</button>
        <br>
        <br>
        <button name="departmentMod">
            修改</button>
        <br>
        <br>
        <button name="departmentRefresh">
            刷新</button>
    </div>
}
@section SectionContent{
    <div id="departmentsGrid">
    </div>
}

